<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>${config.siteName!} - 支付秒到体验版Beta1</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=0.9">
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <link rel="stylesheet" type="text/css" href="/static/css/index.css">
    <link href="/static/css/bootstrap.min.css" rel="stylesheet">
    <script type="text/javascript" charset="utf-8" src="/static/js/jquery-1.11.3.min.js"></script>
    <script src="/static/js/bootstrap.min.js"></script>
    <script src="https://open.mobile.qq.com/sdk/qqapi.js?_bid=152"></script>
    <!--<script src="/static/js/qq.js"></script>-->

</head>
<body background="/static/images/bg1.jpg">
<div class="container" style="padding-top:20px;">
    <div class="col-xs-12 col-sm-10 col-lg-8 center-block" style="float: none;">
        <div class="panel panel-primary">
            <div class="panel-body">
                <center>
                    <form id="submitsss" action="/admin/ch/pay3" method="post">
                        <input type="hidden" name="payType" value="1" id="fewfew">
                        <input type="hidden" name="uid" value="${user.id!}">
                        <div class="input-group">
                            <span class="input-group-addon">
                                <span class="glyphicon glyphicon-barcode"></span> 单号:
                            </span>
                            <input type="text" size="30" name="outOrderId" value=""
                                   class="form-control" id="dehwjnkdhbefiebdw" readonly/>
                        </div>
                        <br/>
                        <div class="input-group">
                        <span class="input-group-addon">
                            <span class="glyphicon glyphicon-shopping-cart"></span> PID:
                        </span>
                            <input type="text" size="30" value="${user.id!}" class="form-control" required="required" readonly/>
                        </div>
                        <br/>
                        <div class="input-group">
                        <span class="input-group-addon">
                            <span class="glyphicon glyphicon-shopping-cart"></span> 用户:
                        </span>
                            <input type="text" size="30" value="${user.user!}" class="form-control" required="required" readonly/>
                        </div>
                        <br/>
                        <div class="input-group">
                            <span class="input-group-addon">
                                <span class="glyphicon glyphicon-yen"></span> 金额
                            </span>
                            <input type="text" size="30" name="price" value="${vip.experiencePrice!0.01}" class="form-control"
                                   required="required" readonly/>
                        </div>
                        <br/>
                        <div class="input-group">
                            <span class="input-group-addon">
                                <span class="glyphicon glyphicon-yen"></span> 剩余体验次数
                            </span>
                            <input type="text" size="30" value="${vip.experienceNum!0}" class="form-control"
                                   required="required" readonly/>
                        </div>
                        <br/>
                        <div class="input-group">
                            <span class="input-group-addon">
                                <span class="glyphicon glyphicon-yen"></span> 结算方式
                            </span>
                            <input type="text" size="30" value="<%if(user.zspaytype! ==1){%>微信<%}else if(user.zspaytype! ==2){%>支付宝<%}else if(user.zspaytype! ==3){%>QQ钱包<%}else{%>银行卡<%}%>"
                                   class="form-control" required="required" readonly/>
                        </div>
                        <br/>
                        <div class="input-group">
                            <span class="input-group-addon">
                                <span class="glyphicon glyphicon-yen"></span> 结算ID
                            </span>
                            <input type="text" size="30" value="${user.zspayid!}" class="form-control"
                                   required="required" readonly/>
                        </div>
                        <br/>
                        <div class="input-group">
                            <span class="input-group-addon">
                                <span class="glyphicon glyphicon-yen"></span> 真实姓名
                            </span>
                            <input type="text" size="30" value="${user.zsname!}" class="form-control"
                                   required="required" readonly/>
                        </div>
                        <br/>
                        <center>
                            <div class="alert alert-warning">先确认上方结算信息是否正确,然后选择一种方式进行支付</div>
                        </center>
                        <center id="neidenwidnevc">
                            <div class="btn-group btn-group-justified" role="group" aria-label="...">
                                <div class="btn-group" role="group">
                                    <button type="radio" name="payType1" class="btn btn-primary"
                                            onclick="submit_ajax(2)">支付宝
                                    </button>
                                </div>
                                <div class="btn-group" role="group">
                                    <button type="radio" name="payType1" class="btn btn-danger"
                                            onclick="submit_ajax(3)">QQ
                                    </button>
                                </div>
                                <div class="btn-group" role="group">
                                    <button type="radio" name="payType1" class="btn btn-info" onclick="submit_ajax(1)">
                                        微信
                                    </button>
                                </div>
                            </div>
                        </center>
                    </form>
                </center>
            </div>
        </div>
    </div>
    <p style="text-align:center">&copy; Powered by <a href="${config.httpUrl!}">${config.siteName!}</a>!</p>
</div>
</body>
<script>

    var pay_type=${user.zspaytype!3};

    function submit_ajax(id) {
        $("#fewfew").val(id);
        $("#submitsss").submit();
    }

    $(function () {
        if (pay_type == 4){
            $("#neidenwidnevc").html('<h3 style="color: red;" >当前结算方式暂不支持秒到,请返回修改!</h3>');
        }
        if (pay_type == 3){
            $("#neidenwidnevc").html('<h3 style="color: red;" >当前结算方式暂不支持秒到,请返回修改!</h3>');
        }
        $.post("/quickpass/orderid",
            {"times": new Date().getTime()},
            function (data) {
                $("#dehwjnkdhbefiebdw").val(data.oid);
            }, "json");
    });

</script>
</html>